package com.fw.service.parentmerchant;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.fw.service.bean.EntryBean;
import com.fw.service.bean.SearchCriteriaBean;
import com.fw.service.bean.SearchResultBean;
import com.fw.service.parentmerchant.bean.ParentMerchantBean;
import com.fw.service.parentmerchant.bean.SearchParentMerchantBean;

/**
 * Description: CRUD Parent Merchant
 * 
 * @author AS073
 *
 */
public interface ParentMerchantService {

    @Transactional
    public List<EntryBean<String, Serializable>> createParentMerchant(ParentMerchantBean parentMerchantBean);

    public ParentMerchantBean getParentMerchant(Long id);

    @Transactional
    public List<EntryBean<String, Serializable>> updateParentMerchant(ParentMerchantBean parentMerchantBean);

    @Transactional
    public List<EntryBean<String, Serializable>> deleteParentMerchant(ParentMerchantBean parentMerchantBean);

    public Boolean checkUniqueParentId(String parentId);

    public SearchResultBean<ParentMerchantBean> selectParentMerchant(SearchCriteriaBean<SearchParentMerchantBean> searchCriteriaBean);

}
